Skip to content

feat: add minimum and maximum value attributes to page source#1031

Merged
KazuCocoa merged 6 commits into
appium:masterfrom
ikharebashviliGD:feat/add-min-and-max-value-attributes
Jun 9, 2025
Merged

feat: add minimum and maximum value attributes to page source#1031
KazuCocoa merged 6 commits into
appium:masterfrom
ikharebashviliGD:feat/add-min-and-max-value-attributes

Conversation

@ikharebashviliGD
Copy link
Copy Markdown

Summary

This PR adds support for the minValue and maxValue attributes using private XCTest APIs.

Motivation

These attributes are important for elements like sliders and steppers, where they define the valid input range. Including them allows better validation, debugging, and automation for range-based UI components.

Implementation Notes

  • The values are retrieved using private attributes _XC_kAXXCAttributeMinValue and _XC_kAXXCAttributeMaxValue.
  • The attributes are only included in the page source (both JSON and XML) for elements that logically support them (e.g., XCUIElementTypeSlider, XCUIElementTypeStepper).
  • Values are returned as strings for consistency in both JSON and XML output.

Comment thread WebDriverAgentLib/Categories/XCUIElement+FBMinMax.m Outdated
Comment thread WebDriverAgentLib/Categories/XCUIElement+FBMinMax.m Outdated
Comment thread WebDriverAgentLib/Categories/XCUIElement+FBMinMax.m Outdated
Comment thread WebDriverAgentLib/Utilities/FBXPath.m
Comment thread WebDriverAgentLib/Utilities/FBXPath.m Outdated
Comment thread WebDriverAgentLib/Categories/XCUIElement+FBMinMax.m Outdated
Comment thread WebDriverAgentLib/Categories/XCUIElement+FBMinMax.m Outdated
Comment thread WebDriverAgentLib/Commands/FBSessionCommands.m Outdated
Comment thread WebDriverAgentLib/Utilities/FBXPath.m
@KazuCocoa KazuCocoa merged commit 0e4e7e7 into appium:master Jun 9, 2025
42 checks passed
github-actions Bot pushed a commit that referenced this pull request Jun 9, 2025
## [9.14.0](v9.13.0...v9.14.0) (2025-06-09)

### Features

* add minimum and maximum value attributes to page source ([#1031](#1031)) ([0e4e7e7](0e4e7e7))
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 9, 2025

🎉 This PR is included in version 9.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@KazuCocoa KazuCocoa added the size:M contribution size: M label Jul 3, 2025
manabuaota added a commit to manabuaota/airtest-netease that referenced this pull request Feb 14, 2026
## [9.14.0](appium/WebDriverAgent@v9.13.0...v9.14.0) (2025-06-09)

### Features

* add minimum and maximum value attributes to page source ([#1031](appium/WebDriverAgent#1031)) ([0e4e7e7](appium/WebDriverAgent@0e4e7e7))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released size:M contribution size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants